import {createApp} from 'vue'
import App from './App.vue'

import router from './router'
import store from './store'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import Cookies from 'js-cookie'

import {postRequest, putRequest, deleteRequest, getRequest} from "./utils/api";

const app = createApp(App);

// 路由 & 状态管理器挂载
app.use(router);
app.use(store);

app.use(ElementPlus)

app.use(Cookies)

app.config.globalProperties.postRequest = postRequest;
app.config.globalProperties.putRequest = putRequest;
app.config.globalProperties.deleteRequest = deleteRequest;
app.config.globalProperties.getRequest = getRequest;

app.mount('#app')
